package com.atomcorp.servicio;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

public class Conexion {
    
    public static Connection getConection() {
        try {
            Class.forName("org.sqlite.JDBC");  
            Connection conexion = DriverManager.getConnection("jdbc:sqlite:D:\\NOTARIA.s3db");  
            return conexion;
       } catch (SQLException | ClassNotFoundException e) {
            Logger.getLogger(UsuarioServicio.class.getName()).log(Level.SEVERE, null, e);
            return null;
        }
    }
}